(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';

$(function () {

    function isAndroid() {
        var userAgent = navigator.userAgent || navigator.vendor || window.opera;

        if (/android/i.test(userAgent)) {
            return true;
        }
        return false;
    }

    var c = {
        ajax: {
            allCount: '/account/mywallet-info',
            listCout: '/account/mywallet-detail-info'
        },
        data: { uid: XT.search.userId || 5320 }
    };

    var store = new Vuex.Store({
        state: {
            allCount: {}
        },
        actions: {
            'get_allCount': function get_allCount(_ref, params) {
                var commit = _ref.commit,
                    state = _ref.state;

                XT.jsonp({
                    url: c.ajax.allCount,
                    data: params.data,
                    success: function success(data) {
                        console.log(data);
                        commit('set_allCount', data);
                    }
                });
            },
            'get_revenue_list': function get_revenue_list(_ref2, params) {
                var commit = _ref2.commit,
                    state = _ref2.state;

                XT.jsonp({
                    url: c.ajax.listCout,
                    data: params.data,
                    success: function success(res) {
                        params.callback(res);
                    }
                });
            }
        },
        mutations: {
            'set_allCount': function set_allCount(state, data) {
                console.log(data);
                state.allCount = data;
            }
        }

    });

    var arr = [];
    var App = new Vue({
        el: '#app',
        data: {
            colorIndex: '0',
            list: []
        },
        store: store,
        methods: {
            'incomeType': function incomeType(index) {
                this.colorIndex = index;
                if (index == 0) {}
            }
        },
        computed: {
            'allCount': function allCount() {
                return this.$store.state.allCount;
            }
        },
        created: function created() {
            this.$store.dispatch('get_revenue_list', {
                data: c.data,
                callback: function callback(res) {
                    $.each(res, function () {
                        var item = ['<li>', '<span class="item_name">' + this.incomeType + '</span>', '<span class="item_yesDay item_reven">', '<i class="zr_num">' + this.incomeYesterday + '</i>', '<i class="zr_sy">昨日收益（魅力值）</i>', '</span>', '<span class="item_all item_reven">', '<i class="all_num">' + this.incomeSum + '</i>', '<i class="all_sy">总收益（魅力值）</i>', '</span>', '</li>'];
                        arr.push(item.join(''));
                    });
                    $('.list').html(arr.join(''));
                }
            });
            this.$store.dispatch('get_allCount', {
                data: c.data
            });
        }
    });
});

},{}]},{},[1]);
